<?php 

/**
* @current userdynamics.php
* @author   LiuYang <liu_yang@haibao.com>
* @date 2016年4月26日 下午5:47:12
*/

namespace haibao\user\model\data;

class UserDynamics extends Base{
    
	/**
	 * 用户动态消息类型MessageType
	 */
	const MESSAGE_TYPE_ATTENTION = 1;
	const MESSAGE_TYPE_COLLECTION = 2;
	const MESSAGE_TYPE_COMMENT = 3;
	const MESSAGE_TYPE_APPLY_TRY = 4;
	const MESSAGE_TYPE_BLOG = 5;
	const MESSAGE_TYPE_BBS = 6;
	const MESSAGE_TYPE_COMMENT_PRAISE = 7;
	
	/**
	 * 用户动态信息类型InfoType
	 */	
	const INFO_TYPE_SELF_COMMENT = 1;
	const INFO_TYPE_APPLY_TRY = 1;
	const INFO_TYPE_APPLY_SELF_COMMENT_PRAISE = 1;
    /**
     * 用户ID
     */
    public $UserId;
    
    /**
     *动态消息（json数据）
     */
    public $MsgContent;
    
    /**
     * 关注日期
     */
    public $CreateTime;
    
    public function __construct(){
        parent::__construct();
        
        $this->intField('UserId', 'UserId',true);
        $this->stringField('MsgContent', 'MsgContent',true);
        $this->dateField('CreateTime', 'CreateTime',true);
        
        $this->setTableName('UserDynamics');
    }
}

?>